package edu.ccut.saturn.studio.naviagtor.preference;

import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import edu.ccut.saturn.studio.core.util.eclipse.Messages;

/**
* 配置管理首界面
* 
* @author 谷钰
* @version 1.0 2008.12.06
* 
*/
public class RootPreferencePage extends PreferencePage implements
		IWorkbenchPreferencePage {

	public RootPreferencePage() {
	}

	public RootPreferencePage(String title) {
		super(title);
	}

	public RootPreferencePage(String title, ImageDescriptor image) {
		super(title, image);
	}

	@Override
	protected Control createContents(Composite parent) {
		noDefaultAndApplyButton();
		Composite topComp = new Composite(parent, SWT.NONE);
		topComp.setLayout(new RowLayout());
		new Label(topComp, SWT.NONE).setText(Messages.getString("RootPreferencePage.welcometosaturnstudio"));  //$NON-NLS-1$
		return topComp;
	}

	public void init(IWorkbench workbench) {
	}

}
